/*
 * main.fx
 *
 * Created on 28.03.2010, 12:45:11
 */

package src.javafx191labs.iosipenko.lab01;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Polygon;
import javafx.scene.paint.Color;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Rectangle;
import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Polyline;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.Group;
import javafx.ext.swing.SwingSlider;

/**
 * @author Илья
 */

Stage {
    title: "shotgun"
    scene: Scene {
        width: 250
        height: 80
        content: [
            
Rectangle {
	x: 400, y: 100
	width: 280, height: 10
	fill: LinearGradient {
	startX : 0.0
	startY : 0.6
	endX : 0.6
	endY : 1.0
	stops: [Stop {color : Color.BLACK
			offset: 0.0
		},
		Stop {
			color : Color.LIGHTGRAY
			offset: 0.8
		},

	]
}
        stroke: Color.BLACK
}
Polygon {
	points : [ 676,97, 670,100, 678,100 ]
	fill: Color.RED
}


Rectangle {
	x: 400, y: 117
	width: 280, height: 12
	fill: LinearGradient {
	startX : 0.0
	startY : 0.5
	endX : 0.5
	endY : 1.0
	stops: [Stop {color : Color.BLACK
			offset: 0.2
		},
		Stop {
			color : Color.LIGHTGRAY
			offset: 0.99
		},

	]
}
stroke: Color.BLACK
}
Rectangle {
	x: 670, y: 110
	width: 7, height: 19
	fill: Color.BLACK
}

Polyline {
	points : [ 400,97, 400,130, 285,130, 280,110, 300,97, 400,97 ]
	strokeWidth: 2.0
        fill: LinearGradient {
	startX : 0.0
	startY : 0.8
	endX : 1.0
	endY : 0.0
	stops: [Stop {color : Color.BLACK
			offset: 0.2
		},
		Stop {
			color : Color.LIGHTGRAY
			offset: 0.99
		},

	]
}
	stroke: Color.BLACK
}
Group {
	content: [
                Ellipse {
	centerX: 303, centerY: 134
	radiusX: 17, radiusY: 8
	fill: Color.BLACK
}
		Ellipse {
	centerX: 303, centerY: 134
	radiusX: 12, radiusY: 5
	fill: Color.WHITE
}
Polygon {
	points : [ 302,138, 301,128, 295,128 ]
	fill: Color.BLACK
        
}
Polyline {
	points : [ 280,110, 285,130, 153,190, 150,135]
	strokeWidth: 2.0
        fill: LinearGradient {
	startX : 0.0
	startY : 0.9
	endX : 1.0
	endY : 0.0
	stops: [Stop {color : Color.LIGHTGOLDENRODYELLOW
			offset: 0.2
		},
		Stop {
			color : Color.BROWN
			offset: 0.99
		},

	]
}
stroke: Color.BROWN
}

Rectangle {
	x: 353, y: 100
	width: 35, height: 9
	fill: Color.SILVER
        stroke: Color.BLACK
}
Rectangle {
            x: 430
            y: 115
            height: 23
            width: 80
            arcHeight: 10
            arcWidth: 10
            fill: Color.LIGHTGOLDENRODYELLOW
            stroke: Color.BROWN
            strokeWidth: 2
        }
	]
}

]

    
    }
}